package com.ruoyi.cems.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cems.mapper.BmsEvcAlternateAirportMapper;
import com.ruoyi.cems.domain.BmsEvcAlternateAirport;
import com.ruoyi.cems.service.IBmsEvcAlternateAirportService;

/**
 * 备降机场联络信息;Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-22
 */
@Service
public class BmsEvcAlternateAirportServiceImpl implements IBmsEvcAlternateAirportService 
{
    @Autowired
    private BmsEvcAlternateAirportMapper bmsEvcAlternateAirportMapper;

    /**
     * 查询备降机场联络信息;
     * 
     * @param ID 备降机场联络信息;主键
     * @return 备降机场联络信息;
     */
    @Override
    public BmsEvcAlternateAirport selectBmsEvcAlternateAirportByID(String ID)
    {
        return bmsEvcAlternateAirportMapper.selectBmsEvcAlternateAirportByID(ID);
    }

    /**
     * 查询备降机场联络信息;列表
     * 
     * @param bmsEvcAlternateAirport 备降机场联络信息;
     * @return 备降机场联络信息;
     */
    @Override
    public List<BmsEvcAlternateAirport> selectBmsEvcAlternateAirportList(BmsEvcAlternateAirport bmsEvcAlternateAirport)
    {
        return bmsEvcAlternateAirportMapper.selectBmsEvcAlternateAirportList(bmsEvcAlternateAirport);
    }

    @Override
    public List<BmsEvcAlternateAirport> selectBmsEvcAlternateAirportListByVcId(String vcId) {
        return bmsEvcAlternateAirportMapper.selectBmsEvcAlternateAirportListByVcId(vcId);
    }

    /**
     * 新增备降机场联络信息;
     * 
     * @param bmsEvcAlternateAirport 备降机场联络信息;
     * @return 结果
     */
    @Override
    public int insertBmsEvcAlternateAirport(BmsEvcAlternateAirport bmsEvcAlternateAirport)
    {
        return bmsEvcAlternateAirportMapper.insertBmsEvcAlternateAirport(bmsEvcAlternateAirport);
    }

    /**
     * 修改备降机场联络信息;
     * 
     * @param bmsEvcAlternateAirport 备降机场联络信息;
     * @return 结果
     */
    @Override
    public int updateBmsEvcAlternateAirport(BmsEvcAlternateAirport bmsEvcAlternateAirport)
    {
        return bmsEvcAlternateAirportMapper.updateBmsEvcAlternateAirport(bmsEvcAlternateAirport);
    }

    /**
     * 批量删除备降机场联络信息;
     * 
     * @param IDs 需要删除的备降机场联络信息;主键
     * @return 结果
     */
    @Override
    public int deleteBmsEvcAlternateAirportByIDs(String[] IDs)
    {
        return bmsEvcAlternateAirportMapper.deleteBmsEvcAlternateAirportByIDs(IDs);
    }

    /**
     * 删除备降机场联络信息;信息
     * 
     * @param ID 备降机场联络信息;主键
     * @return 结果
     */
    @Override
    public int deleteBmsEvcAlternateAirportByID(String ID)
    {
        return bmsEvcAlternateAirportMapper.deleteBmsEvcAlternateAirportByID(ID);
    }
}
